import 'package:flutter/material.dart';

main() {
  runApp(MaterialApp(home: StatelessHome()));
}

class StatelessHome extends StatelessWidget {
  StatelessHome({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: const Text('bar'),
        ),
        body: ListView.separated(
          itemCount: 40,
          itemBuilder: (BuildContext context, int index) {
            return ListTile(
              leading: CircleAvatar(backgroundImage: AssetImage('images/pic.jpg')),
              title: Text('Eugene Guo'),
              subtitle: Text('一个铁罕汗'),
              trailing: TextButton(onPressed: () {  }, child: Icon(Icons.arrow_right_outlined),),
            );
            //   Text(
            //   'data-entry-$index',
            //   style: const TextStyle(fontSize: 30),
            // );
          },
          separatorBuilder: (BuildContext context, int index) {
            return const Divider(
              color: Colors.red,
              height: 10, // 分割线高度
              endIndent: 10,
              // indent: 10,
            );
          },
        )
    );
  }
}
